#!/bin/bash
cd MNN
function moveFile() {
    cd build_${ANDROID_ABI}
    # 源目录和目标目录
    src_dir="."
    dst_dir="/Users/sansecy/Movies/MNNDemo/app/src/main/jniLibs/${ANDROID_ABI}"
    rm -rf ${dst_dir}
    echo "clean ${dst_dir}"
    mkdir ${dst_dir}
    echo "mkdir ${dst_dir}"
#    # 使用find命令查找所有的.so文件，并使用mv命令将它们移动到目标目录
    find . -name "*.so" -type f -exec cp {} "${dst_dir}" \;

    echo "All .so files have been moved from $src_dir to $dst_dir."
    cd ..
}
export ANDROID_ABI=armeabi-v7a
moveFile
export ANDROID_ABI=arm64-v8a
moveFile
